﻿using System;
using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    // NOTE: If you change the interface name "IMisConduct" here, you must also update the reference to "IMisConduct" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IMisConduct
    {
        [OperationContract]
        DataSet MisConduct_GetAll();

        [OperationContract]
        DataSet MisConduct_GetList(out int ItemCount, int currentPage, int pageSize, int BranchID, int DepartmentID, string keyword, int _month, int _year);

        [OperationContract]
        MisConductInfo MisConduct_GetInfo(int MisConductID);

        [OperationContract]
        int MisConduct_Insert(MisConductInfo eInfo);

        [OperationContract]
        bool MisConduct_Update(MisConductInfo eInfo);

        [OperationContract]
        bool MisConduct_Delete(int FMID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class MisConductInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        string _Description;
        [DataMember]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }
    }
}

